package com.explorati.design_pattern.structural.composite.example;

/**
 * 叶子节点类：其下没有其他的分支，定义出参加组合的原始对象的行为
 * 
 * @author explorati
 *
 */
public class Employee implements Company {

	private String name;
	private String position;
	private int salary;

	public Employee(String name, String position, int salary) {
		this.name = name;
		this.position = position;
		this.salary = salary;
	}

	@Override
	public String getInfo() {
		String info = "";
		info = "名称: " + this.name;
		info = info + "\t 职位: " + this.position;
		info = info + "\t 薪水: " + this.salary;
		return info;
	}

}
